
import request from '@/utils/request'


export function postTournament(data) {
	return request({
		url: '/system/tournament',
		data: data,
		method: 'post'
	})
}



export function getTournament(data) {
	return request({
		url: '/system/tournament/list',
		data: data,
		method: 'get'
	})
}

// 赛前设置 修改赛事
export function getTournamentEdit(data) {
	return request({
		url: '/system/tournament',
		data: data,
		method: 'put'
	})
}

//修改赛事工作人员 /personnel
export function getTournamentEditPersonnel(data) {
	return request({
		url: '/system/personnel',
		data: data,
		method: 'put'
	})
}


export function deletetournament(id) {
	return request({
		url: `/system/tournament/${id}`,
		method: 'delete'
	})
}

export function liveturl(data) {
	return request({
		url: `/system/live/tournament/beginLive`,
		method: 'get',
		data
	})
}



export function liverData(data) {
	return request({
		url: `/system/live/tournament/beginLive`,
		method: 'get',
		data
	})
}


export function getliverul(id) {
	return request({
		url: `/system/live/tournament/list?tournamentId=${id}`,
		method: 'get',
	})
}


export function getImgCanvas(data) {
	return request({
		url: `/system/playerLog/getImg`,
		method: 'get',
		data,
	})
}